import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import router from './router'

// 移动端自适应
import 'amfe-flexible'
import initObj  from './utils/rem.js'
initObj.initRootFontSize()

// 导入动画样式
import 'animate.css';

router.beforeEach((to, from, next)=>{
  if(to.meta.title){
    document.title = to.meta.title
  }
  next()
})

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
